package org.atf.services;

import java.util.Date;



public class TaskStatus {
	public static String NOTIFICATION="NOTIFICATION";
	private String taskId;
	private Integer serverId;
	private Integer profileId;
	private String serverName;
	private String task;
	private String status;
	private String comment;
	private String output;
	private String error;
	private Date startDate ;
	private Date endDate ;
	private String username;
	public TaskStatus(){
		
	}
	
	public TaskStatus(String taskId, Integer serverId, Integer profileId,String task, String serverName, String comment){
		this.taskId= taskId;
		this.serverId=serverId;
		this.profileId= profileId;
		this.task=task;
		this.serverName=serverName;
		this.comment=comment;
	}
	
	public TaskStatus(String taskId, Integer serverId, Integer profileId,String task, String serverName, String comment, String output, String error){
		this.taskId= taskId;
		this.serverId=serverId;
		this.profileId= profileId;
		this.task=task;
		this.serverName=serverName;
		this.comment=comment;
		this.output=output;
		this.error=error;
	}
	public String getTaskId() {
		return taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	public Integer getServerId() {
		return serverId;
	}
	public void setServerId(Integer serverId) {
		this.serverId = serverId;
	}
	public Integer getProfileId() {
		return profileId;
	}
	public void setProfileId(Integer profileId) {
		this.profileId = profileId;
	}
	public String getServerName() {
		return serverName;
	}
	public void setServerName(String serverName) {
		this.serverName = serverName;
	}
	public String getTask() {
		return task;
	}
	public void setTask(String task) {
		this.task = task;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public String getOutput() {
		return output;
	}
	public void setOutput(String output) {
		this.output = output;
	}
	public String getError() {
		return error;
	}
	public void setError(String error) {
		this.error = error;
	}
	
	

	
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Override
	public String toString() {
		return "TaskStatus [taskId=" + taskId + ", serverId=" + serverId
				+ ", profileId=" + profileId + ", serverName=" + serverName
				+ ", task=" + task + ", status=" + status + ", comment="
				+ comment + ", output=" + output + ", error=" + error + "]";
	}
	
	
}
